package cc.service;

import cc.entity.Book;
import cc.entity.Page;

import java.util.List;

/**
 * @ClassName: BookService
 * @Description:
 * @Author: 晓东√
 * @Date: 2024-09-04 09:35
 * @Version: 1.0
 **/
public interface BookService {
    /**
     * 返回查询书籍数据
     * @param bookName 书籍名称
     * @param author 作者
     * @return
     */
    public Page<Book> selectAll(String bookName, String author,int pageNum);

    /**
     * 保存数据
     * @param book
     * @return
     */
    public boolean saveBook(Book book);

    public Book detail(Integer id);

    boolean updateBook(Book book);
}
